package com.syyai.spring.boot.starter.demo.util;

import javax.servlet.ServletRequest;


/**
 * 
 * @author zhangyongjie
 *
 */
public class RequestUtil {
	
	private static ThreadLocal<ServletRequest> tl = new ThreadLocal<ServletRequest>();

	public static void setServletRequest(ServletRequest request) {
		tl.set(request);
	}
	
	public static ServletRequest getServletRequest() {
		return tl.get();
	}
	
	

}
